package com.csf.struct.adapter.obj;

/**
 * TODO ADD DESCRIPTION
 * Date: 2018/9/6
 * Time: 15:22
 *
 * @author chenshf
 */
public class Wrapper implements Target {

    public Wrapper(Source source) {
        this.source = source;
    }

    /**
     * 持有source对象
     */
    private Source source;
    @Override
    public void method1() {
        source.method1();
    }

    @Override
    public void method2() {
        System.out.println("Source method 2");
    }
}
